package edu.zut.cs.javaee.manager.teacher.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import edu.zut.cs.javaee.manager.base.domain.BaseEntity;

@Entity
@Table(name = "T_TEACHER")
public class Teacher extends BaseEntity<Long> {

	/**	
	 * 
	 */
	private static final long serialVersionUID = -7822385909186943673L;
	@Column(name = "NAME")
	private String name; // 姓名
	@Column(name = "SEX")
	private String sex; // 性别
	@Column(name = "AGE")
	private String age; // 年龄
	@Column(name="CODE")
	private String Code;
	
	@ManyToOne
	@JoinColumn(name="SUBJECT_specialty")
	Subject subject;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public String getAge() {
		return age;
	}
	public void setAge(String age) {
		this.age = age;
	}

	public String getCode() {
		return Code;
	}
	public void setCode(String code) {
		Code = code;
	}

	 
}
